-- GENERATED SPELL FOR [Humar the Pridelord] --


function spell0_5828(pUnit, Event) --@Agonizing Pain,n/a--
pUnit:FullCastSpellOnTarget(3247,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5828', 15000, 1)
end

function Sorts_5828(pUnit, Event)
local choix_sorts_5828 = math.random(0, 0)
if choix_sorts_5828 == 0 then
pUnit:RegisterEvent('spell0_5828', 1, 1)
end
end

function mob5828_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5828', math.random(1500, 3000), 1)
end

function mob5828_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5828_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5828_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5828, 1, 'mob5828_Action')
RegisterUnitEvent(5828, 2, 'mob5828_Leave')
RegisterUnitEvent(5828, 3, 'mob5828_Kill')
RegisterUnitEvent(5828, 4, 'mob5828_Die')
